import java.awt.event.*;


public class MVCRestaurantController {


	private MVCRestaurantView view;
	private Orders ordersLister;
	private KitchenToHatch kth;
	private HatchToTable table;
	Thread t, h,tab;

	public MVCRestaurantController(MVCRestaurantView v,Orders orderList, KitchenToHatch kh, HatchToTable htt) {
		view = v;
		ordersLister = orderList;
		kth = kh;
		table = htt;
		t = new Thread(ordersLister);
		h = new Thread(kth);
		tab = new Thread(table);
		view.addbt1Listener(new ProcessControllerbt1());
		view.addbt2Listener(new ProcessControllerbt2());
		view.addrt1Listener(new ProcessControllerrt1());
		view.addrt2Listener(new ProcessControllerrt2());
		view.addgt1Listener(new ProcessControllergt1());
		view.addgt2Listener(new ProcessControllergt2());
		view.addstartListener(new ProcessControllerStart());
		view.addstopListener(new ProcessControllerStop());

	}


	class ProcessControllerbt1 implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			//orderLister.
		}
	}

	class ProcessControllerbt2 implements ActionListener {
		public void actionPerformed(ActionEvent e) {

		}
	}

	class ProcessControllerrt1 implements ActionListener {
		public void actionPerformed(ActionEvent e) {

		}

	}
	class ProcessControllerrt2 implements ActionListener {
		public void actionPerformed(ActionEvent e) {

		}
	}
	class ProcessControllergt1 implements ActionListener {
		public void actionPerformed(ActionEvent e) {

		}
	}
	class ProcessControllergt2 implements ActionListener {
		public void actionPerformed(ActionEvent e) {

		}
	}
	class ProcessControllerStart implements ActionListener {
		public void actionPerformed(ActionEvent e) {			
			t.start();
			view.disableStart();
		      MenuLog log = MenuLog.getLogInstance();
		}
	}
	class ProcessControllerStop implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			
		}
	}


} 
